const js = {
	data() {
		return {
			rules: {
				HeaderUrl: [{
					required: true,
					trigger: 'blur',
					validator: (rule, value, callback) => {
						if (value === null || value === "") {
							var msg = this.stringFormat(this.comLan.Require1, this.keyLan["HeaderUrl"]);
							callback(new Error(msg));
						} else {
							callback();
						}
					}
				}],
				SysCustomerName: [{
					required: true,
					trigger: 'blur',
					validator: (rule, value, callback) => {
						if (value === null || value === "") {
							var msg = this.stringFormat(this.comLan.Require1, this.keyLan["SysCustomerName"]);
							callback(new Error(msg));
						} else {
							callback();
						}
					}
				}],
				Phone: [{
					required: true,
					trigger: 'blur',
					validator: (rule, value, callback) => {
						if (value === null || value === "") {
							var msg = this.stringFormat(this.comLan.Require1, this.keyLan["Phone"]);
							callback(new Error(msg));
						} else {
							callback();
						}
					}
				}],
			}
		};
	},
	computed: {
		EnumSysCustomerType() {
			return this.emptyArray(window["EnumSysCustomerType"]);
		},
		EnumStatus() {
			return this.emptyArray(window["EnumStatus"]);
		},
		EnumSysCustomerSource() {
			return this.emptyArray(window["EnumSysCustomerSource"]);
		},
		EnumSysCustomerIntention() {
			return this.emptyArray(window["EnumSysCustomerIntention"]);
		},
		EnumGender() {
			return this.emptyArray(window["EnumGender"]);
		},
		Qualification() {
			return this.emptyArray(window["Qualification"]);
		},
		IsDemoIsYes() {
			return [{
				Value: false,
				Label: '否',
				Color: 'red'
			}, {
				Value: true,
				Label: '是',
				Color: 'green'
			}];
		},
		IsDelIsYes() {
			return [{
				Value: false,
				Label: '否',
				Color: 'red'
			}, {
				Value: true,
				Label: '是',
				Color: 'green'
			}];
		},
		EnumSysStoreType() {
			return this.emptyArray(window["EnumSysStoreType"]);
		},
		EnumQuitStatus() {
			return this.emptyArray(window["EnumQuitStatus"]);
		},
		CanSeePhoneIsYes() {
			return [{
				Value: false,
				Label: '否',
				Color: 'red'
			}, {
				Value: true,
				Label: '是',
				Color: 'green'
			}];
		},
	},
	methods: {}
}

export default js;